﻿namespace Mediator
{
    internal class ColleagueButton : Button, IColleague
    {
        private IMediator mediator;

        public ColleagueButton(string caption)
        {
            this.Text = caption;
        }

        public void SetColleagueEnabled(bool enabled)
        {
            this.Enabled = enabled;
        }

        public void SetMediator(IMediator mediator)
        {
            this.mediator = mediator;
        }
    }
}
